package eip.chapter6.messagefilter;

import java.io.Serializable;

public class DeclarationMessage implements Serializable {

	private static final long serialVersionUID = 212932518324833933L;
	
	private String hotelName;
	private String hotelId;
	private String declarationId;
	private String declarationDescription;
	private double declarationAmount;
	
	public String getDeclarationDescription() {
		return declarationDescription;
	}
	public void setDeclarationDescription(String declarationDescription) {
		this.declarationDescription = declarationDescription;
	}
	public String getDeclarationId() {
		return declarationId;
	}
	public void setDeclarationId(String declarationId) {
		this.declarationId = declarationId;
	}
	public double getDeclarationAmount() {
		return declarationAmount;
	}
	public void setDeclarationAmount(double declarationAmount) {
		this.declarationAmount = declarationAmount;
	}
	public String getHotelId() {
		return hotelId;
	}
	public void setHotelId(String hotelId) {
		this.hotelId = hotelId;
	}
	public String getHotelName() {
		return hotelName;
	}
	public void setHotelName(String hotelName) {
		this.hotelName = hotelName;
	}
	
	/**
	 * Constructs a <code>String</code> with all attributes
	 * in name = value format.
	 *
	 * @return a <code>String</code> representation 
	 * of this object.
	 */
	public String toString()
	{
	    final String TAB = "    ";
	    
	    String retValue = "";
	    
	    retValue = "DeclarationMessage ( "
	        + super.toString() + TAB
	        + "hotelName = " + this.hotelName + TAB
	        + "hotelId = " + this.hotelId + TAB
	        + "declarationId = " + this.declarationId + TAB
	        + "declarationDescription = " + this.declarationDescription + TAB
	        + "declarationAmount = " + this.declarationAmount + TAB
	        + " )";
	    
	    return retValue;
	}
}
